package day2.p4;

import java.io.IOException;

public class Calc {

	public static void main(String[] args) throws IOException {
		int num1 = Integer.parseInt(args[0]);
		int num2 = Integer.parseInt(args[2]);
		int value = 0;
		char op = args[1].charAt(0);

		switch (op) {
		case '+':
			value = num1 + num2;
			System.out.println("Value : " + value);
			break;

		case '-':
			value = num1 - num2;
			System.out.println("Value : " + value);
			break;

		case '*':
			value = num1 * num2;
			System.out.println("Value : " + value);
			break;

		case '/':
			value = num1 / num2;
			System.out.println("Value : " + value);
			break;

		default:
			System.out.println("Invalid Operator, Try again");
		}

	}

}
